/*
 * Copyright (c) 2024. hallele, Inc All rights reserved.
 */

package cn.hallele.mc.sdk.portalcenter.api;

import cn.hallele.infrastructure.metadata.io.Response;
import cn.hallele.mc.sdk.portalcenter.dto.MenuDTO;
import cn.hallele.mc.sdk.portalcenter.dto.MenuQueryDTO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import org.springdoc.core.annotations.ParameterObject;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * 菜单管理
 *
 * @author anle5
 * @since 2024/10/12 22:25
 */
@Tag(name = "菜单管理")
public interface MenuApi {
    /**
     * 获取 路由列表
     *
     * @return List
     */
    @Operation(summary = "路由列表")
    @GetMapping("/routes")
    Response<List<MenuDTO>> getRoutes();

    /**
     * 获取 菜单列表
     *
     * @param condition 查询条件
     * @return 系统菜单
     */
    @Operation(summary = "菜单列表")
    @GetMapping("/menus")
    Response<List<MenuDTO>> getMenus(@Valid @SpringQueryMap @ParameterObject MenuQueryDTO condition);


}
